/* 数据概览页面样式 */

/* 页面头部 */
.page-header {
    background: white;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.header-right .el-button-group {
    display: flex;
    gap: 12px;
}

/* 主要内容区 */
.main-content {
    padding: 0 24px;
}

/* 时间范围选择 */
.time-range-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 数据概览卡片 */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.overview-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.card-trend {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-trend.up {
    color: #10b981;
}

.card-trend.down {
    color: #f56c6c;
}

/* 图表区域 */
.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.chart-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.chart-content {
    padding: 24px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    color: #9ca3af;
}

.chart-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* 数据表格区域 */
.data-table-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* 表格样式 */
.el-table {
    margin-bottom: 20px;
}

.el-table th {
    background-color: #f9fafb !important;
    color: #374151;
    font-weight: 600;
}

.el-table td {
    color: #4b5563;
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

/* 按钮样式 */
.el-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.el-button--primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6d4c98 100%);
}

.el-button--success {
    background: #10b981;
    border: none;
}

.el-button--success:hover {
    background: #059669;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .charts-section {
        grid-template-columns: 1fr;
    }

    .overview-cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-right {
        width: 100%;
    }

    .header-right .el-button-group {
        width: 100%;
    }

    .header-right .el-button {
        flex: 1;
    }

    .main-content {
        padding: 0 16px;
    }

    .time-range-section {
        flex-direction: column;
        align-items: stretch;
    }

    .time-range-section .el-date-picker {
        width: 100%;
    }

    .chart-content {
        height: 200px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .page-header,
    .time-range-section,
    .overview-card,
    .chart-card,
    .data-table-section {
        background: #1f2937;
    }

    .header-left h1,
    .chart-header h3,
    .section-header h3 {
        color: #f9fafb;
    }

    .card-title {
        color: #9ca3af;
    }

    .card-value {
        color: #f9fafb;
    }

    .el-table th {
        background-color: #111827 !important;
        color: #f9fafb;
    }

    .el-table td {
        color: #d1d5db;
    }

    .chart-header {
        border-color: #374151;
    }

    .chart-placeholder {
        color: #6b7280;
    }
} 